package cate.game.role.res.guild.boss;


import cate.game.rank.po.Rank;
import cate.game.role.Role;
import cate.game.role.RoleSnapshot;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "排行榜[公会BOSS]数据")
public class GuildBossRankItemPO extends Rank {
    public GuildBossRankItemPO() {
    }

    public double getDamage() {
        return value;
    }

    public GuildBossRankItemPO(Role role,long damage) {
        super(role,damage);
    }

    public void read(Role role, long damage) {
        this.owner = new RoleSnapshot(role);
        this.value += damage;
        this.recordTime = System.currentTimeMillis();
    }
}
